﻿namespace GoodAdmin.CodeGenerator;

[ApiDescriptionSettings("CodeGenerator", Tag = "表单配置")]
[Route("/codeGen/formConfig")]
public class CodeGenFormConfigController: IDynamicApiController
{
    private readonly ICodeGenFormConfigService _formConfigService;

    public CodeGenFormConfigController(ICodeGenFormConfigService formConfigService)
    {
        _formConfigService = formConfigService;
    }

    public async Task Add(CodeGenFormConfigAddInput input)
    {
        await _formConfigService.Add(input);
    }
    public async Task Update(CodeGenFormConfigUpdateInput input)
    {
        await _formConfigService.Update(input);
    }
    public async Task Delete(BaseIdInput input)
    {
        await _formConfigService.Delete(input);
    }

    public async Task<CodeGenFormConfig> GetDetailData(BaseIdInput input)
    {
        return await _formConfigService.GetDetailData(input);
    }
}
